/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: LIUYANJIAO
 * Date: 2024-07-30
 * Time: 10:33
 */
public class Main {
    public static <E> void main(String[] args) {
//        Marry[] A=new Marry[10];
//        A[0].getMarry(0,10);
//        A[1].getMarry(1,78);
//        A[0].outMarry(0);
//        A[0].outMarry(1);
//        A[1].outMarry(0);
//        A[1].outMarry(1);
        Marry<Integer> A=new Marry<>();
        A.getMarry(0,7);
        Integer a=A.outMarry(0);
        System.out.println(a);
        Marry<Double>D=new Marry<>();
        D.getMarry(8,9.85);
        double d=D.outMarry(8);
        System.out.println(d);

    }
}